<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a {
            width: 150px;
            height: 50px;
            background-color: green;
            display: block;
        }

        div {
            width: 300px;
            height: 100px;
            background-color: purple;
            display: inline;
        }

        span {
            width: 190px;
            height: 30px;
            background-color: skyblue;
            display: inline-block;
        }
    </style>

</head>

<body>
    <a href="#">行内元素转换块元素1</a>
    <a href="#">行内元素转换块元素2</a>
    <div>块元素</div>
    <div>块元素</div>
    <span>行内元素转换行内块元素1</span>
    <span>行内元素转换行内块元素2</span>
</body>

</html>